# ifndef DEF_PNJ
# define DEF_PNJ

# include "Source.h"

# include "Personage.h"

class PNJ : public Personage
{
	public:

	PNJ();
	~PNJ();

	void setCurrentDialog( const std::string&);

	const std::string& getCurrentDialog();

	void addQuestActivated( const std::string&);

	void init( Renderer*, const std::string&, const std::string&);
	void load( const std::string&);
	void loadTalk( const std::string&);
	void loadQuest( const std::string&, unsigned int);
	void unloadQuest( const std::string&);

	void oneFrame();

	void activateQuest( Quest*);
	void desactivateQuest( Quest*);

	PieceDialog* findPieceDialog( const std::string&);

	private:

	std::string myLua;
	std::string myLuaTalk;

	std::vector<std::string> myQuestsActivated;

	std::string myCurrentDialog;
	std::map<std::string, PieceDialog*> myDialog;
};

# endif